package com.tricode.ile.training.task.sl275.lab7;

public class Fish extends Animal implements Pet{

    private String name;

    public Fish() {
        super(0);
    }

    @Override
    public String getName() {
        return null;
    }

    @Override
    public void setName(String name) {
        this.name = name;
    }

    @Override
    public void play() {
        System.out.println("Fish loves to play with sharks.");
    }

    public void walk() {
        super.walk();
        System.out.println("Fishes swim.");
    }

    public void eat() {
        System.out.println("Fishes eat algs.");
    }
}
